home *** CD-ROM | disk | FTP | other *** search
/ Atari Forever 4 / Atari Forever 4.zip / Atari Forever 4.iso / SERIE_AI / AI_052 / INTERNET / STIK / DIAL.SCR < prev    next >
Text File  |  1998-03-14  |  4KB  |  129 lines

  1. #
  2. #   Dial script file for STiK.ACC
  3. #
  4. #
  5. #   There are two parts to the connection process.
  6. #
  7. #   The first part is initialising the modem, dialing a remote system
  8. #   and establishing a connection to a remote modem.
  9. #
  10. #   The second part is to log into the remote computer.  This will
  11. #   involve entering a username and password, selecting SLIP mode,
  12. #   and reading the Internet Address that your system will have for
  13. #   the duration of the session.
  14. #
  15. #
  16. #   Dial Script Part 1  -  Establishing the connection.
  17. #
  18. #   The first thing to do is to specify the speed of the modem with
  19. #   the BAUD_RATE variable.
  20. #
  21. BAUD_RATE = 19200
  22. #
  23. #
  24. #   Next you should define how your modem responds to the DTR
  25. #   signal.  STiK will use the DTR signal to hangup the modem
  26. #   if HANGUP = DTR is set.  Otherwise set HANGUP to the
  27. #   appropriate hangup string for your modem. (eg: HANGUP = ATH)
  28. #
  29. HANGUP = DTR
  30. #
  31. #
  32. #   PREFIX sets the dial prefix (ie: ATD, ATDT, ATDP)
  33. #
  34. PREFIX = ATD
  35. #
  36. #
  37. #   INIT set the string you can use to initialise the modem.
  38. #
  39. INIT = ATZ
  40. #
  41. #
  42. #   Dialing paramaters.
  43. #
  44. #   The dialing parameters are CONNECT_WAIT and REDIAL_DELAY.  These
  45. #   are times in seconds.  CONNECT_WAIT is the amount of time to wait
  46. #   for a connection after dialing a number.  REDIAL_DELAY is the amount
  47. #   of time to wait in between dial attempts.
  48. #
  49. CONNECT_WAIT = 35
  50. REDIAL_DELAY = 20
  51. #
  52. #
  53. #   Phone Number(s).  PHONE_NUMBER = number.  Some providers
  54. #   have more than one number you can dial.  You can specify
  55. #   up to five phone numbers here.
  56. #
  57. PHONE_NUMBER = 2581510
  58. PHONE_NUMBER = 2926200
  59. #
  60. #
  61. #   Determining connection success/failure.
  62. #
  63. #   Connection success can be determined either by detecting the
  64. #   modems Carrier Detect signal (SUCCESS = CDWAIT), or waiting 
  65. #   for a CONNECT response (SUCCESS = CONNECT) from the modem.
  66. #   Failure can be determined by a timeout or a modem response
  67. #   such as NO CARRIER, BUSY, NO DIALTONE etc.
  68. #   Up to five FAILURE test words can be set.
  69. #
  70. SUCCESS = CDWAIT
  71. FAILURE = BUSY
  72. FAILURE = NO CARRIER
  73. FAILURE = NO DIALTONE
  74. #
  75. #
  76. #
  77. #   Dial Script Part 2  -  Log in to the Service Provider.
  78. #
  79. #   The STiK dialer uses the standard `conversational' method for
  80. #   login to the provider.  This involves searching for certain
  81. #   words and sending an appropriate response.  The special
  82. #   response $GET_IP is used to read the IP address that your
  83. #   provider has assigned you for this session.  If your provider
  84. #   has allocated you a permanent IP Address, then you should set
  85. #   it in the default.cfg file and NOT use $GET_IP.
  86. #
  87. #   Each step of the `conversation' is specified as a FIND line
  88. #   and a RESP line.  There can be up to 10 steps.  Each FIND
  89. #   *must* have a matching RESP and WAIT, even if they have no
  90. #   value.  (values are put into arrays in the order they appear)
  91. #
  92. #   WAIT is the time in milliseconds to pause before each FIND/RESP
  93. #   For accuracy, the time should be a multiple of 5.
  94. #   (ie: a WAIT = 4  would result in a pause of 0. WAIT = 12 would be 10)
  95. #
  96. #   By default each RESP line is sent with a carriage return
  97. #   character at the end.  If you need to use a line feed character
  98. #   instead then put a | at the end of the line.  This only works
  99. #   if the | is the last character of the line.  A / character at
  100. #   the end of a line means carriage return, but this is the default,
  101. #   so you don't need it.
  102. #
  103. #   If you want to send just a Carriage Return, then use RESP /
  104. #   If you want to send just a Linefeed, then use RESP |
  105. #
  106. #   Note that if neither FIND or RESP have a value, they are ignored,
  107. #   but in this case the WAIT (if any) will still pause.
  108. #   If FIND has no value but RESP does, the value of RESP will be
  109. #   sent immediately or after the WAIT time.
  110. #   If FIND has a value but RESP does not, then after the FIND
  111. #   the dialer will move straight on to the next WAIT/FIND/RESP
  112. #
  113. WAIT
  114. FIND = Enter:
  115. RESP = 3
  116. #
  117. WAIT
  118. FIND = Username:
  119. RESP = steve
  120. #
  121. WAIT
  122. FIND = Password:
  123. RESP = steve_password
  124. #
  125. WAIT
  126. FIND = Your address is
  127. RESP = $GET_IP
  128. #
  129.